import request from '@/utils/request'
// 订单统计
export const getOrdersStatistics = (params) => {
  return request.get('/orders/statistics', {
    params: params
  })
}
// 订单列表查询
export const getallorderlist = (params) => {
  return request.get('/orders/list', {
    params
  })
}

// 获取订单详情
export const getOrderDetail = (orderId) => {
  return request.get(`/orders/${orderId}`)
}

// 更新订单状态
export const updateOrderStatus = (orderId, status) => {
  return request.put(`/orders/${orderId}/${status}`)
}
//创建订单
export const addorder = (obj) => {
  return request.post('/orders/add', obj)
}
